-- -*- mode: Haskell;-*- 
-- Filename:    report.cf 
-- Authors:     lgm                                                    
-- Creation:    Sun May 10 14:27:24 2009 
-- Copyright:   Not supplied 
-- Description: 
-- ------------------------------------------------------------------------

Application     . Report        ::= Report Report1                        ;
Dependency      . Report1       ::= Formals "->" "{" Report1 "}"          ;
Aggregation     . Report1       ::= "[" [Report]  "]"                     ;
Atomic          . Report1       ::= ReportId "(" [Question] ")"           ;

_               . Report        ::= Report1                               ;
_               . Report1       ::= "(" Report ")"                        ;

Parameters      . Formals       ::= "(" [ReportId] ")"                    ;

Variable        . ReportId      ::= Ident                                 ;
Query           . Question      ::= Ident                                 ;

[]              . [Report]      ::=                                       ;
(: [])          . [Report]      ::= Report                                ;
(:)             . [Report]      ::= Report "," [Report]                   ;

[]              . [ReportId]    ::=                                       ;
(: [])          . [ReportId]    ::= ReportId                              ;
(:)             . [ReportId]    ::= ReportId "," [ReportId]               ;

[]              . [Question]    ::=                                       ;
(: [])          . [Question]    ::= Question                              ;
(:)             . [Question]    ::= Question "," [Question]               ;